export default class UpData {
  constructor(delay) {
    this.delay = delay;
    this.time = new Date().getTime();
  }

  pastTime(){
    return new Date().getTime() - this.time;
  }

  delayTime(){
    return Math.floor(this.pastTime() / this.delay);
  }
}